package com.port.runner;

import lombok.extern.slf4j.Slf4j;

import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

@Slf4j
public class AppStart {


    public static void main(String[] args) {
        Path path = Paths.get("C:\\Users\\admin\\Desktop\\TEST\\psmk\\CDMonitorSession.csv");
        int count = 0;
        try(Stream<String> lines = Files.lines(path)){
            List<String> collect = lines.collect(Collectors.toList());
            collect.forEach(line->{
                log.info("第行数据:{}",line);
            });



        }catch (Exception e){
            log.error("读取文件失败",e);
        }

    }
}
